Dim vInvoice As SAPbobsCOM.Documents Set vInvoice = vCmp.GetBusinessObject(oInvoices) vInvoice.GetByKey ("63") ' The count starts from 0, therefore the line number parameter is 2. vInvoice.Lines.SetCurrentLine (2)